home *** CD-ROM | disk | FTP | other *** search
/ Ham Radio 2000 / Ham Radio 2000.iso / ham2000 / tcp_ip / jnos / cmdshelp / memory < prev    next >
Text File  |  1994-08-09  |  4KB  |  107 lines

  1.  
  2. memory <subcommands>
  3.  
  4.      These commands are used for memory allocation.
  5.  
  6.      
  7.     memory freelist
  8.  
  9.      Display the storage allocator free list.  Each entry consists of
  10.      a starting segment, in hex, and a size, in decimal bytes.
  11.      
  12.      
  13.     memory ibufsize [<size>]
  14.  
  15.      (B)  Display or set the size of the buffers in the  interrupt
  16.      buffer  pool.   The size  should  be  set to the largest type of
  17.      buffer plus a header size of 8.  For example: If your ax.25 is
  18.      the only interface and a packet length of 512 is defined, the
  19.      ibufsize  should  be 512 + 72 + 8 = 592 .  The 72 is the ax.25
  20.      header (source , destination, 8 digipeaters, 1 control byte and 1
  21.      pid byte).  Default is 600.  See also the section on INTERFACE
  22.      BUFFERS.
  23.      
  24.     memory minalloc [<bytes>]
  25.  
  26.      Set the minimum number of bytes to allocate per malloc() call.
  27.      Setting a small value (32 or 64) might allow the realloc scheme
  28.      to work more effectively by preventing excessive memory
  29.      fragmentation.  Default = 0, no minimum allocation size.
  30.      
  31.      
  32.     memory nibufs [<number>]
  33.  
  34.      (B)  Display or set the number of interrupt buffer pool buffers.
  35.      If the number of buffers is set, the statistics in the 'memory
  36.      status' display are reset for number of interrupt buffer fails.
  37.      The minimum available value is set to the requested  number  of
  38.      buffers.  A rule of thumb for the number of buffers is to watch
  39.      the statistics and keep a minimum of 2  free  buffers.  Increase
  40.      or decrease as required. Default is 10.  See also the section on
  41.      INTERFACE BUFFERS.
  42.      
  43.      
  44.     memory sizes
  45.  
  46.      Display a histogram of storage allocator requested sizes.  Each
  47.      histogram bin is a binary order of magnitude (i.e., a factor of
  48.      2).
  49.      
  50.      
  51.     memory status
  52.  
  53.      Display a summary of storage allocator statistics.
  54.      
  55.      heap size 52560, avail 12880 (24%), morecores 150, coreleft 5872
  56.      
  57.  
  58.      The first line shows the total size of the internal heap, the
  59.      amount of memory available on the internal heap with the
  60.      percentage of the total heap size, next the number of times
  61.      memory has been requested from the Operating System, and the
  62.      amount of memory the OS has left over.
  63.      
  64.      allocs 16706, frees 16389 (diff 317), alloc fails 0, invalid
  65.      frees 0
  66.      
  67.      Next, the number of times memory has been allocated, and has been
  68.      freed is shown.  The difference is the number of buffers
  69.      currently allocated.  Alloc fails show up when the system is
  70.      running out of memory resources.
  71.      Invalid frees mean that memory was overwritten, and indicates the
  72.      system is about to lose sanity...
  73.  
  74.           garbage collections yellow 0, red 0
  75.      
  76.      Garbage collections free memory from network control structures
  77.      that could not have otherwise been freed.  Yellow garbage
  78.      collections are started when the total available memory, i.e.
  79.      avail+coreleft, becomes smaller then memthresh.  Red garbage
  80.      collections indicate that available memory got below memthresh/2
  81.      
  82.      interrupts-off calls to malloc 0, free 0
  83.      
  84.      These should never be other then 0.  They indicate calls to the
  85.      memory allocator with interrupts off.  These requests should be
  86.      handled by the interrupt buffer pool.  If these values are non-
  87.      zero, you most likely have a problem.
  88.      
  89.      Intqlen 9, Ibufsize 600, Iminfree 9, Ibuffail 0
  90.      
  91.      This line shows the current number of interrupts buffers in the
  92.      interrupts buffer pool, the size of each buffer, and the minimum
  93.      number of free buffers.  If this last number gets close to, or
  94.      becomes zero, you should increase the buffer pool size with the
  95.      'memory nibuf' command.  The statistics are reset when this
  96.      command is executed.
  97.      
  98.      
  99.     memory thresh [<size>]
  100.  
  101.      (B)  Displays or sets the memory threshold size in bytes.  If
  102.      free memory gets below this value, no more new connections can be
  103.      started and no new connections will be accepted.  This is an
  104.      attempt to preserve the system's sanity.
  105.      
  106.  
  107.